<?php
	if ( isset($_POST['facebookid']) && isset($_POST['firstname']) && isset($_POST['lastname']) ) {
		
		$facebookid = "fb_".$_POST['facebookid'];
		$firstname	= $_POST['firstname'];
		$lastname	= $_POST['lastname'];

		$lastquestion = 1;
		$albumid = 0;
		$ruby  = 0;
		 
		require_once __DIR__ . '/db_connect.php';;

		$db = new DB_CONNECT();

		$results = mysql_query("INSERT INTO user (username, first_name, last_name, last_question, album_id, ruby) values ('".$facebookid."', '".$firstname."', '".$lastname."', '".$lastquestion."', '".$albumid."', '".$diamond."')") or die(mysql_error());
		$id = mysql_insert_id();

		print_r($id."|".$lastquestion."|".$albumid."|".$ruby);			
	} else
		echo 0;
?>